package com.bonuo.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Province {
    private Integer id;
    private Integer userId;
    private Integer deptId;

    @Excel(name = "省份")
    private String name;
    @Excel(name = "年份")
    private String year;
    @Excel(name = "第一季度")
    private BigDecimal q1Sale;
    @Excel(name = "第二季度")
    private BigDecimal q2Sale;
    @Excel(name = "第三季度")
    private BigDecimal q3Sale;
    @Excel(name = "第四季度")
    private BigDecimal q4Sale;
    @Excel(name = "总金额")
    private BigDecimal totalSale;
    @Excel(name = "备注")
    private String remark;
    @Excel(name = "创建人")
    private String createBy;
    @Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    /** 排序 */
    private String sort;
}
